package com.sls.game.service;

import com.sls.core.socket.Head;
import com.sls.core.socket.ServerDisponseException;

/**
 * 
 * @description 手拉手开放给下游用户的Http服务
 * @author Wangxuegang
 * @date 2012-10-12
 * 
 */
public interface SLSHttpInterfaceService {

	/**
	 * 商品品牌同步
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryAllBrand(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 查询某一品牌下的所有商品
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryGoodsOfByBrandId(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 某一商品的详细信息查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String saveQueryOneGoodsOfDetail(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 交易接口
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
//	public String insertOfTrading(String body, Head head)
//			throws ServerDisponseException;

	/**
	 * 单笔订单查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String querySinglePenOfTrade(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 获取下载对账文件的url
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryReconciliationUrl(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 提取卡密
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String insertOfPickingUpCard(String body, Head head)
			throws ServerDisponseException;

	/**
	 * 用户余额查询
	 * 
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String queryUserBalance(String body, Head head)
			throws ServerDisponseException;
	
	/**
	 * 上游返回订单处理失败时，管理端退款
	 * @param body
	 * @param head
	 * @return
	 * @throws ServerDisponseException
	 */
	public String updateRefundAboutOrder(String body, Head head)throws ServerDisponseException;

}
